/*******************************************************************************
 * Copyright (c) 2011 Olexandr V. Shaposhnikov.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *    Olexandr V. Shaposhnikov - initial API and implementation and/or initial documentation
 *******************************************************************************/
package com.funkyroach.use.udk;

import java.io.File;
import java.util.HashMap;

public class USUDKRuntime {

    public static boolean isOSx64_Arch() {
        String osArch = System.getProperty("os.arch");
        if ("amd64".equals(osArch)) {
            return true;
        }
        return false;
    }

    private static HashMap<String, USUDKInstall> fgContributedUDKs = new HashMap<String, USUDKInstall>();

    private USUDKRuntime() {
    }

    public static boolean isContains(File udkFolder) {
        return fgContributedUDKs.containsKey(udkFolder.getAbsolutePath());
    }

    public static void put(USUDKInstall udk) {
        fgContributedUDKs.put(udk.getLocation().getAbsolutePath(), udk);
    }
}
